// import './style.css'
import 'element-plus/dist/index.css'
import 'virtual:windi.css'
import ElementPlus from 'element-plus'
import { createApp } from 'vue'
import App from './App.vue'
import { router } from './router/index.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import store from './store'
import './permission'

import "nprogress/nprogress.css"
import permission from "~/directives/permission.js"
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'   //汉化


const app = createApp(App)
// 图标引入
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus, { locale: zhCn, })
app.use(store)
app.use(router)
app.use(ElementPlus)
app.use(permission)
app.mount('#app')